package cn.lyvust.shili03plus;

/**
 * Description:利用抽象类实现多态
 * date: 2021-4-13 10:48
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class Test {
    public static void main(String[] args) {
        Pet dog=new Dog();
        dog.setHealth(10);

        Pet qq = new Penguin("qq", "male");
        qq.setHealth(10);

        dog.print();
        System.out.println("*************************");
        Master master=new Master();
        master.cure(dog);
        dog.print();
    }
}
